package com.jianhua.backend.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 * 记录订单状态变更历史，用于追踪
 * </p>
 *
 * @author author
 * @since 2025-07-02
 */
@Getter
@Setter
@ToString
@TableName("order_status_logs")
public class OrderStatusLogs implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 日志ID
     */
    @TableId(value = "log_id", type = IdType.AUTO)
    private Integer logId;

    /**
     * 关联订单ID
     */
    @TableField("order_id")
    private Integer orderId;

    /**
     * 变更后的状态
     */
    @TableField("status")
    private String status;

    /**
     * 操作人员ID
     */
    @TableField("operator_id")
    private Integer operatorId;

    /**
     * 操作备注
     */
    @TableField("notes")
    private String notes;

    /**
     * 变更时间
     */
    @TableField("created_at")
    private Date createdAt;
}
